package cn.tedu.egspring;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class Comment {
    @Value("2")
    private int id;
    @Value("寂寞，是洋葱湿过的眼泪")
    private String content;

    @Override
    public String toString() {
        return "Comment{" +
                "id=" + id +
                ", content='" + content + '\'' +
                '}';
    }
}
